home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Linux LiveCD / GeeXboX 1.0 EN / geexbox-1.0-en.i386.iso / GEEXBOX / usr / share / alsa / cards / VIA8233.conf < prev    next >
Encoding:
Text File  |  2006-06-21  |  2.8 KB  |  209 lines

  1. #
  2. # Configuration for the VIA8233/VIA8233C/VIA8235 chip with 4/6 multi-channel support
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. VIA8233.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. # default with softvol/dsnoop
  18. # VIA8233 supports multi-playback
  19. VIA8233.pcm.default {
  20.     @args [ CARD ]
  21.     @args.CARD {
  22.         type string
  23.     }
  24.     type asym
  25.     playback.pcm {
  26.         type plug
  27.         slave.pcm {
  28.             type softvol
  29.             slave.pcm {
  30.                 type hw
  31.                 card $CARD
  32.                 device 0
  33.             }
  34.             control {
  35.                 name "PCM Playback Volume"
  36.                 card $CARD
  37.             }
  38.         }
  39.     }
  40.     capture.pcm {
  41.         type plug
  42.         slave.pcm {
  43.             @func concat
  44.             strings [ "dsnoop:" $CARD ]
  45.         }
  46.     }
  47. }
  48.  
  49. <confdir:pcm/surround40.conf>
  50.  
  51. VIA8233.pcm.surround40.0 {
  52.     @args [ CARD ]
  53.     @args.CARD {
  54.         type string
  55.     }
  56.     type hooks
  57.     slave.pcm {
  58.         type hw
  59.         card $CARD
  60.         device 1
  61.         channels 4
  62.     }
  63.     hooks.0 {
  64.         type ctl_elems
  65.         hook_args [
  66.             {
  67.                 name "Channel Mode"
  68.                 device 0
  69.                 preserve true
  70.                 value "4ch"
  71.                 lock true
  72.                 optional true
  73.             }
  74.             # for old drivers
  75.             {
  76.                 name "Line-In As Surround"
  77.                 preserve true
  78.                 value true
  79.                 optional true
  80.             }
  81.             {
  82.                 name "Surround Down Mix"
  83.                 device 0
  84.                 preserve true
  85.                 value off
  86.                 lock true
  87.                 optional true
  88.             }
  89.         ]
  90.     }
  91. }
  92.  
  93. <confdir:pcm/surround41.conf>
  94. <confdir:pcm/surround50.conf>
  95. <confdir:pcm/surround51.conf>
  96.  
  97. VIA8233.pcm.surround51.0 {
  98.     @args [ CARD ]
  99.     @args.CARD {
  100.         type string
  101.     }
  102.     type hooks
  103.     slave.pcm {
  104.         type hw
  105.         card $CARD
  106.         device 1
  107.         channels 6
  108.     }
  109.     hooks.0 {
  110.         type ctl_elems
  111.         hook_args [
  112.             {
  113.                 name "Channel Mode"
  114.                 device 0
  115.                 preserve true
  116.                 value "6ch"
  117.                 lock true
  118.                 optional true
  119.             }
  120.             # for old drivers
  121.             {
  122.                 name "Line-In As Surround"
  123.                 preserve true
  124.                 value true
  125.                 optional true
  126.             }
  127.             {
  128.                 name "Mic As Center/LFE"
  129.                 preserve true
  130.                 value true
  131.                 optional true
  132.             }
  133.             {
  134.                 name "Surround Down Mix"
  135.                 device 0
  136.                 preserve true
  137.                 value off
  138.                 lock true
  139.                 optional true
  140.             }
  141.             {
  142.                 name "Center/LFE Down Mix"
  143.                 device 0
  144.                 preserve true
  145.                 value off
  146.                 lock true
  147.                 optional true
  148.             }
  149.         ]
  150.     }
  151. }
  152.  
  153. <confdir:pcm/iec958.conf>
  154.  
  155. VIA8233.pcm.iec958.0 {
  156.     @args [ CARD AES0 AES1 AES2 AES3 ]
  157.     @args.CARD {
  158.         type string
  159.     }
  160.     @args.AES0 {
  161.         type integer
  162.     }
  163.     @args.AES1 {
  164.         type integer
  165.     }
  166.     @args.AES2 {
  167.         type integer
  168.     }
  169.     @args.AES3 {
  170.         type integer
  171.     }
  172.     type hooks
  173.     slave.pcm {
  174.         type hw
  175.         card $CARD
  176.         device 0
  177.         subdevice 3
  178.     }
  179.     hooks.0 {
  180.         type ctl_elems
  181.         hook_args [
  182.             {
  183.                 name "IEC958 Playback AC97-SPSA"
  184.                 lock true
  185.                 preserve true
  186.                 value 3
  187.             }
  188.             {
  189.                 name "IEC958 Playback Default"
  190.                 lock true
  191.                 preserve true
  192.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  193.             }
  194.             {
  195.                 name "IEC958 Playback Switch"
  196.                 lock true
  197.                 preserve true
  198.                 value true
  199.             }
  200.             {
  201.                 name "IEC958 Output Switch"
  202.                 lock true
  203.                 preserve true
  204.                 value true
  205.             }
  206.         ]
  207.     }
  208. }
  209.